export default {
  createReportByExamine:{//根据体检创建报告
    url: '/his/report/createByExamine',
    require:['token','clientid','title','examineId']//nextExamineDate(选)、data(选)、reportItems(选，格式：[{"title":"体检报告项标题","reportModuleId":1,"data":{}},{"title":"xx报告项标题","reportModuleId":2,"data":{}}])
  },
  createReport:{//创建报告
    url: '/his/report/create',
    require:['token','clientid','title','departmentId','userId']//reportModuleIds/reportItems,currExamineDate(选)、nextExamineDate(选)、data(选)、sn(选)
  },
  updateReport:{//更新报告
    url: '/his/report/update',
    require:['token','id']//title,data
  },
  delReport:{//删除报告
    url: '/his/report/delete',
    require:['token','id']
  },
  getReport:{//获取报告
    url: '/his/report/get',
    require:['token','clientid','id']
  },
  publishReport:{//发布报告
    url: '/his/report/publish',
    require:['token','id']
  },
  printReport:{//打印报告
    url: '/his/report/print',
    require:['token','id']
  },
  requestDownloadReport:{//请求下载报告
    url: '/his/report/requestDownload',
    require:['token','id']
  },
  getReportList:{//获取报告列表
    url: '/his/report/list',
    require:['token','clientid']//page、size(选)、departmentId(选)、userId(选)、state(选)、isView(选)、isPrint(选)、isDownload(选)、isPublish(选)、currExamineDateStart(选)、currExamineDateEnd(选)、nextExamineDateStart(选)、nextExamineDateEnd(选)
  },
  getReportByUser:{//用户获取报告列表
    url: '/his/report/listByUser',
    require:['token','clientid']
  },
  //报告模块类型
  createReportModule:{//创建报告模块类型
    url: '/his/reportModule/create',
    require:['token','clientid','title','code']//title、metadata(选)、code、data(选)
  },
  updateReportModule:{//更新报告模块类型
    url: '/his/reportModule/update',
    require:['token','id']//title(选)、enabled(选)、metadata(选)、code(选)、data(选)
  },
  delReportModule:{//删除报告模块类型
    url: '/his/reportModule/delete',
    require:['token','id']//id/code
  },
  getReportModule:{//获取报告模块类型
    url: '/his/reportModule/get',
    require:['token','clientid']//id/code
  },
  getReportModuleList:{//获取报告模块类型列表
    url: '/his/reportModule/list',
    require:['token','clientid']
  },
  //报告模块
  createReportItem:{//创建报告模块
    url: '/his/reportItem/create',
    require:['token','clientid','title','reportModuleTypeId','reportId']//data(选)
  },
  delReportItem:{//删除报告模块
    url: '/his/reportItem/delete',
    require:['token','id']
  },
  saveReportItem:{//保存报告模块
    url: '/his/reportItem/saveItem',
    require:['token','id']//data
  },
  finishReportItem:{//完成报告模块
    url: '/his/reportItem/finishItem',
    require:['token','id']
  },
  getReportItem:{//获取报告模块
    url: '/his/reportItem/get',
    require:['token','clientid','id']
  },
  getReportItemList:{//获取报告模块列表
    url: '/his/reportItem/list',
    require:['token','clientid']//page、size(选)、departmentId(选)、userId(选)、state(选)、isView(选)、isPrint(选)、isDownload(选)、isPublish(选)、currExamineDateStart(选)、currExamineDateEnd(选)、nextExamineDateStart(选)、nextExamineDateEnd(选)
  },
}
